package com.atomdayl.domain.therecipe.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.atomdayl.domain.therecipe.R;

/**
 * Created by 86265 on 2016/5/15.
 */
public class UploadActivity extends BaseActivity implements View.OnClickListener {

    private TextView layout_title;
    private ImageView layout_back;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_upload);
        initViews();
    }

    private void initViews() {
        layout_title = (TextView) findViewById(R.id.layout_title);
        layout_title.setText(getResources().getString(R.string.upload_dish));

        layout_back = (ImageView) findViewById(R.id.layout_back);
        layout_back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.layout_back:
                finish();
                break;
        }
    }
}
